import type { LoginParams, loginRes, Profile } from "@/types/user"
import { request } from "@/utils/reuqest"


export const loginAPI = (data:LoginParams)=>{
  return request<loginRes>('/park/login', 'POST', data)
}

/**
 * @description: 获取用户信息
 * @param {*} data {}
 * @return {*} promise
 */
export const getProfileAPI = () => {
  return request<Profile>('/park/user/profile', 'GET')
}
 